import os, shutil

class PicsMaker :
	def __init__(s, pdbid, tempdir) :
		s.pdbid = pdbid; s.tdir = tempdir
		s.tdir = os.path.join(s.tdir, "PicsMaker_" + s.pdbid)
		if os.path.isdir(s.tdir) : shutil.rmtree(s.tdir)
		os.mkdir(s.tdir)
	def makepics(s) :
		s.picofp = open( os.path.join(s.tdir, "info") , 'w' )
		print >> s.picofp, "hi"
		s.picofp.close()

if __name__ == "__main__" :
	PicsMaker("1cbs", "/tmp").makepics()
